﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.ExportToRTR.CUiExportToRTRObservable
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using System.ComponentModel;


namespace DnProcessSimulateCommands.ExportToRTR{

public class CUiExportToRTRObservable : INotifyPropertyChanged
{
  public event PropertyChangedEventHandler PropertyChanged;

  protected void NotifyPropertyChanged(string propertyName = "")
  {
    PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
    if (propertyChanged == null)
      return;
    propertyChanged((object) this, new PropertyChangedEventArgs(propertyName));
  }

  protected bool Set<T>(ref T field, T value, string propertyName = "")
  {
    if (object.Equals((object) field, (object) value))
      return false;
    field = value;
    this.NotifyPropertyChanged(propertyName);
    return true;
  }
}
